﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace MiddleMvcTask.Data
{
    /// <summary>
    /// Interface which implement Repository Pattern
    /// </summary>
    /// <typeparam name="T"> class </typeparam>
    public interface IRepository<T> where T : class
    {
        ICollection<T> All();
        
        T Add(T entity);

        void Save();

    }
}